package PangModel;

import java.awt.*;
import java.util.ArrayList;

/**
 * Created by YILMAZ on 23/4/2015.
 */
public class Hook extends Weapon {

    @Override
    public ArrayList<Bullet> shoot(Point p, boolean isThereBulletsOnAir)
    {
        ArrayList<Bullet> bullets = new ArrayList<Bullet>(); // an empty arraylist
        if (isThereBulletsOnAir)
            return new ArrayList<Bullet>(); // an empty arraylist

        Rope rope = new Rope();
        rope.setCoordinates(p.getX(), p.getY()+5);

        rope.setDirection(ROPE_DEFAULT_DIRECTION);
        bullets.add(rope);
        return bullets;
    }
}
